import { checkCodeApi, registerApi, getProfileConfig, saveUserInfo, getVerifyCode } from './api/api.js'

export const store = {
  state: {
  },
  mutations: {

  },
  actions: {
    CHECK_CODE: ({ commit, state }, params) => {
      return checkCodeApi(params)
    },
    REGISTER_USER: ({ commit, state }, params) => {
      return registerApi(params)
    },
    GET_PROFILE: ({ commit, state }, params) => {
      return getProfileConfig(params)
    },
    SAVE_USER_INFO: ({ commit, state }, params) => {
      return saveUserInfo(params)
    },
    GET_VERIFY_CODE: ({ commit, state }, params) => {
      return getVerifyCode(params)
    }
  }
}
